package com.warm.orm.domain.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.warm.orm.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.noear.solon.validation.annotation.NotBlank;
import org.noear.solon.validation.annotation.NotEmpty;
import org.noear.solon.validation.annotation.NotNull;

import java.io.Serial;

/**
 * 扩展插件对象 sys_hot_plug
 *
 * @author xian.zi.ming@qq.com
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_hot_plug")
public class SysHotPlug extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 权限定名
     */
    @TableId(type = IdType.INPUT)
    @NotBlank(message = "权限定名不能为空")
    @NotNull(message = "权限定名不能为空")
    private String qualifiedName;

    @ApiModelProperty(value = "插件上传路径")
    private String jarHttpUrl;

    /**
     * 插件名称
     */
    private String name;


    /**
     * 作者
     */
    private String author;

    /**
     * 官方文档
     */
    private String website;

    /**
     * 插件包名
     */
    private String jarName;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 状态 (0 停止 1 启动  )
     */
    private String status;

}
